﻿<ribbon:BackstageTabItem x:Class="Hisaab.Client.Modules.Core.Dashboard.View.SummaryBackStageTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:h="clr-namespace:Hisaab.Client.Common.Helpers;assembly=Hisaab.Client.Common"
             xmlns:ribbon="clr-namespace:Fluent;assembly=Fluent" xmlns:Controls="clr-namespace:Hisaab.Client.Common.Controls;assembly=Hisaab.Client.Common" Header="Summary" h:IndexHelper.Index="1">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="44" />
            <ColumnDefinition Width="196" />
            <ColumnDefinition Width="243" />
            <ColumnDefinition Width="171" />
            <ColumnDefinition Width="93*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="48" />
            <RowDefinition Height="75" />
            <RowDefinition Height="28" />
            <RowDefinition Height="35" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="35" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="70" />
            <RowDefinition Height="89*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
            <Image  VerticalAlignment="Center" Stretch="None" Source="Pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/32/OpenBook.png"  />
            <Label Content="Summary" Foreground="#FF5E5E5E" VerticalContentAlignment="Center" FontWeight="Bold" FontSize="26"  />
        </StackPanel>
        <Label Content="This Month" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="18" Grid.Row="3" Grid.Column="1" FontWeight="Bold" />
        <Label Content="Income" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="4" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch" Grid.Row="4" Grid.Column="2"  Content="{Binding Summary.Income, StringFormat='{}{0:C}'}" VerticalContentAlignment="Center" />
        <Label Content="Expanse" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="5" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch" Grid.Row="5" Grid.Column="2" Content="{Binding Summary.Expanse, StringFormat='{}{0:C}'}" VerticalContentAlignment="Center"/>
        <Label Content="Projected Saving" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="6" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch" Grid.Row="6" Grid.Column="2" Content="{Binding Summary.ExpectedSaving, StringFormat='{}{0:C}'}" VerticalContentAlignment="Center"/>

        <Label Content="Overall" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="18" Grid.Row="8" Grid.Column="1" FontWeight="Bold" />
        <Label Content="Total Worth" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="9" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch" Grid.Row="9" Grid.Column="2" Content="{Binding Summary.TotalWorth, StringFormat='{}{0:C}'}" VerticalContentAlignment="Center"/>

        <Label Content="Income Change" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="10" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch"  Grid.Row="10" Grid.Column="2" Content="{Binding Summary.PercentIncomeChange}" VerticalContentAlignment="Center" />

        <Label Content="Expanse Change" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FF5E5E5E" FontSize="14" Grid.Row="11" Grid.Column="1" />
        <Label VerticalAlignment="Center" Height="24" HorizontalAlignment="Stretch"  Grid.Row="11" Grid.Column="2" Content="{Binding Summary.PercentExpanseChange}" VerticalContentAlignment="Center" />

        <ribbon:Button Grid.Row="13" Style="{DynamicResource ButtonBackstageStyle}"
                       LargeIcon="Pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/32/Refresh.png" Grid.Column="1" Command="{Binding ReloadSummaryCommand}" >Refresh
        </ribbon:Button>
    </Grid>
</ribbon:BackstageTabItem>